package date_;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author wly
 * @version V1.0.0
 * @date 2022/12/24 10:45
 */
public class DateTimeFormat01 {
    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy年MM月dd日 hh:mm:ss");
        System.out.println(dateTimeFormatter.format(now));
    }
}
